<?php /*a:2:{s:43:"D:\WWW\xhcms2\app\admin\view\base/auth.html";i:1564280993;s:51:"D:\WWW\xhcms2\app\admin\view\common/_container.html";i:1563851691;}*/ ?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit"/><!-- 让360浏览器默认选择webkit内核 -->

    <!-- 全局css -->
    <!-- 全局css -->
    <link rel="shortcut icon" href="__PUBLIC__/static/favicon.ico">
    <link href="__PUBLIC__/static/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="__PUBLIC__/static/css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="__PUBLIC__/static/css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet">
    <link href="__PUBLIC__/static/css/plugins/validate/bootstrapValidator.min.css" rel="stylesheet">
    <link href="__PUBLIC__/static/css/animate.css" rel="stylesheet">
    <link href="__PUBLIC__/static/css/style.css?v=4.1.0" rel="stylesheet">
     <link rel="stylesheet" href="__PUBLIC__/static/js/plugins/layui/css/layui.css?ver=170803"  media="all">
    
    <link href="__PUBLIC__/static/css/plugins/iCheck/custom.css" rel="stylesheet">
    <link href="__PUBLIC__/static/css/plugins/webuploader/webuploader.css" rel="stylesheet">
    <link href="__PUBLIC__/static/css/plugins/ztree/zTreeStyle.css" rel="stylesheet">
    <link href="__PUBLIC__/static/css/plugins/jquery-treegrid/css/jquery.treegrid.css" rel="stylesheet"/>
    <!-- <link href="__PUBLIC__/static/css/plugins/ztree/demo.css" rel="stylesheet"> -->

    <!-- 全局js -->
    <script src="__PUBLIC__/static/js/jquery.min.js?v=2.1.4"></script>
    <script src="__PUBLIC__/static/js/bootstrap.min.js?v=3.3.6"></script>
    <script src="__PUBLIC__/static/js/plugins/ztree/jquery.ztree.all.min.js"></script>
    <script src="__PUBLIC__/static/js/plugins/bootstrap-table/bootstrap-table.min.js"></script>
    <script src="__PUBLIC__/static/js/plugins/validate/bootstrapValidator.min.js"></script>
    <script src="__PUBLIC__/static/js/plugins/validate/zh_CN.js"></script>
    <script src="__PUBLIC__/static/js/plugins/bootstrap-table/bootstrap-table-mobile.min.js"></script>
    <script src="__PUBLIC__/static/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
    <script src="__PUBLIC__/static/js/plugins/jquery-treegrid/js/jquery.treegrid.min.js"></script>
    <script src="__PUBLIC__/static/js/plugins/jquery-treegrid/js/jquery.treegrid.bootstrap3.js"></script>
    <script src="__PUBLIC__/static/js/plugins/jquery-treegrid/extension/jquery.treegrid.extension.js"></script>
    <script src="__PUBLIC__/static/js/plugins/layer/layer.min.js"></script>
    <script src="__PUBLIC__/static/js/plugins/iCheck/icheck.min.js"></script>
    <script src="__PUBLIC__/static/js/plugins/layer/laydate/laydate.js"></script>
    <script src="__PUBLIC__/static/js/plugins/webuploader/webuploader.min.js"></script>
    <script src="__PUBLIC__/static/js/common/ajax-object.js"></script>
    <script src="__PUBLIC__/static/js/common/bootstrap-table-object.js"></script>
    <script src="__PUBLIC__/static/js/common/tree-table-object.js"></script>
    <script src="__PUBLIC__/static/js/common/web-upload-object.js"></script>
    <script src="__PUBLIC__/static/js/common/ztree-object.js"></script>
    <script src="__PUBLIC__/static/js/common/Feng.js"></script>
	<script type="text/javascript" src="__PUBLIC__/static/js/ueditor/ueditor.config.js"></script>
	<script type="text/javascript" src="__PUBLIC__/static/js/ueditor/ueditor.all.min.js"> </script>
	<script type="text/javascript" src="__PUBLIC__/static/js/xheditor/xheditor-1.2.2.min.js"></script>
	<script type="text/javascript" src="__PUBLIC__/static/js/xheditor/xheditor_lang/zh-cn.js"></script>
    <script type="text/javascript">
		<?php
			$domains = config('app.domain_bind');
			if(count($domains) > 0){
				foreach($domains as $key=>$val){
					if($val == request()->app()){
						$ctxPathUrl = '';
					}else{
						$ctxPathUrl = '/'.request()->app();
					}
				}
			}else{
				$ctxPathUrl = '/'.request()->app();
			}
		?>
        Feng.addCtx("<?php echo $ctxPathUrl;?>");
        Feng.sessionTimeoutRegistry();
    </script>
</head>

<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
	
<div class="row">
	<div class="col-sm-12">
		<div class="ibox float-e-margins">
			<div class="ibox-content">
				<div class="row row-lg">
           <form  action="">
			<input type="hidden" name="id" id="id" value="<?php echo $id; ?>">
					<div class="col-sm-12">					
						<div > 
						<?php if(is_array($list) || $list instanceof \think\Collection || $list instanceof \think\Paginator): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
						<table class="table table-bordered" style="margin-bottom:2px;"> 
							<tbody>
								<tr> 
									<td style="background-color:#F5F5F6; font-weight:bold; text-align:left" width="180px"><input type="checkbox" name="authorize" <?php if(in_array($vo['val'],$myAccess)): ?>checked<?php endif; ?> level="1" value="<?php echo $vo['val']; ?>"><?php echo $vo['title']; ?></td>
									<td>
									<?php if($vo['subdata'][0]['subdata'] == ''): if(is_array($vo[subdata]) || $vo[subdata] instanceof \think\Collection || $vo[subdata] instanceof \think\Paginator): $i = 0; $__LIST__ = $vo[subdata];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$item): $mod = ($i % 2 );++$i;?>
											<input type="checkbox" name="authorize" <?php if(in_array($item['val'],$myAccess)): ?>checked<?php endif; ?> value="<?php echo $item['val']; ?>"> <?php echo $item['title']; ?>
										<?php endforeach; endif; else: echo "" ;endif; ?>
									<?php endif; ?>
									</td>									
								</tr>
								<?php if($vo['subdata'][0]['subdata'] != ''): if(is_array($vo[subdata]) || $vo[subdata] instanceof \think\Collection || $vo[subdata] instanceof \think\Paginator): $i = 0; $__LIST__ = $vo[subdata];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$item): $mod = ($i % 2 );++$i;?>
									<tr> 
										<td style="background-color:#F5F5F6; font-weight:bold; text-align:left" width="180px">
										&nbsp;&nbsp;&nbsp;&nbsp;<input name="authorize" type="checkbox" <?php if(in_array($item['val'],$myAccess)): ?>checked<?php endif; ?> value="<?php echo $item['val']; ?>" level="2">├─<?php echo $item['title']; ?></td>
										<td>
										<?php if(is_array($item['subdata']) || $item['subdata'] instanceof \think\Collection || $item['subdata'] instanceof \think\Paginator): $i = 0; $__LIST__ = $item['subdata'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?>
										<input type="checkbox" name="authorize" <?php if(in_array($v['val'],$myAccess)): ?>checked<?php endif; ?> value="<?php echo $v['val']; ?>"> <?php echo $v['title']; ?>&nbsp;
										<?php endforeach; endif; else: echo "" ;endif; ?>
										</td>								
									</tr>
									<?php endforeach; endif; else: echo "" ;endif; ?>
								<?php endif; ?>
								
							</tbody> 
						</table>
						<?php endforeach; endif; else: echo "" ;endif; ?>
						
						
						<table class="table table-bordered" style="margin-bottom:2px;"> 
							<tbody>
								<tr> 
									<td style="background-color:#F5F5F6; font-weight:bold; text-align:left" width="180px"><input type="checkbox" name="authorize" value="/admin/FormData"  <?php if(in_array('/admin/FormData',$myAccess)): ?>checked<?php endif; ?>  level="1">在线表单</td>
									<td></td>									
								</tr>
								<?php $_result=db('extend')->where("type=2 ")->select();if($_result)foreach($_result as $key=>$query):?>
								<tr> 
									<td style="background-color:#F5F5F6; font-weight:bold; text-align:left" width="180px">
									&nbsp;&nbsp;&nbsp;&nbsp;<input name="authorize" value="/admin/FormData/index/extend_id/<?php echo $query['extend_id']; ?>.html" <?php if(in_array("/admin/FormData/index/extend_id/".$query['extend_id'].'.html',$myAccess)): ?>checked<?php endif; ?> type="checkbox" level="2"><?php echo $query['title']; ?></td>
									<td>
										<input type="checkbox" name="authorize"  <?php if(in_array("/admin/FormData/add/extend_id/".$query["extend_id"].'.html',$myAccess)): ?>checked<?php endif; ?> value="/admin/FormData/add/extend_id/<?php echo $query['extend_id']; ?>.html">添加&nbsp;
										
										<input type="checkbox" name="authorize"  <?php if(in_array('/admin/FormData/update/extend_id/'.$query["extend_id"].'.html',$myAccess)): ?>checked<?php endif; ?> value="/admin/FormData/update/extend_id/<?php echo $query['extend_id']; ?>.html">修改&nbsp;
										
										<input type="checkbox" name="authorize"  <?php if(in_array('/admin/FormData/delete/extend_id/'.$query["extend_id"].'.html',$myAccess)): ?>checked<?php endif; ?> value="/admin/FormData/delete/extend_id/<?php echo $query['extend_id']; ?>.html">删除&nbsp;
										
										<input type="checkbox" name="authorize"  <?php if(in_array('/admin/FormData/view/extend_id/'.$query["extend_id"].'.html',$myAccess)): ?>checked<?php endif; ?> value="/admin/FormData/view/extend_id/<?php echo $query['extend_id']; ?>.html">查看数据&nbsp;
										
										<input type="checkbox" name="authorize"  <?php if(in_array('/admin/FormData/importData/extend_id/'.$query["extend_id"].'.html',$myAccess)): ?>checked<?php endif; ?> value="/admin/FormData/importData/extend_id/<?php echo $query['extend_id']; ?>.html">数据导入&nbsp;
										
										<input type="checkbox" name="authorize"  <?php if(in_array('/admin/FormData/dumpData/extend_id/'.$query["extend_id"].'.html',$myAccess)): ?>checked<?php endif; ?> value="/admin/FormData/dumpData/extend_id/<?php echo $query['extend_id']; ?>.html">数据导出&nbsp;
									
									</td>								
								</tr>
								<?php endforeach;else?><?php echo "";?>
							</tbody> 
						</table>
						
						</div>
						<div class="row btn-group-m-t">
							<div class="col-sm-10">
								<button type="button" class="btn btn-info " onclick="CodeInfoDlg.addAuth()" id="ensure">
									<i class="fa fa-check"></i>&nbsp;提交
								</button>
								<button type="button" class="btn btn-danger " onclick="CodeInfoDlg.close()" id="cancel">
									<i class="fa fa-eraser"></i>&nbsp;取消
								</button>
							</div>
						</div>
						
					</div>
					</form>
				</div>
			</div>
		</div>
	</div>
</div>
<script src="__PUBLIC__/static/js/base.js"></script>
<script type="text/javascript">
    $('input[level=1]').click(function(){
	      var inputs = $(this).parent().parent().parent().parent().find('input');
		  inputs.prop("checked", $(this).prop("checked"));  
	});
	
	$('input[level=2]').click(function(){
	      var inputs = $(this).parent().parent().find('input');
		  inputs.prop("checked", $(this).prop("checked"));  
	});
</script>

</div>
<script src="__PUBLIC__/static/js/content.js?v=1.0.0"></script>

</body>
</html>
